package com.framework.admin.domain.param;

import java.io.Serializable;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 公司注册入参
 * @author lusy
 *
 */
@Data
public class CompanyRegisterParam implements Serializable {

	private static final long serialVersionUID = -166685583318188146L;

	@NotBlank(message="账号必填")
	@Size(message="账号最大32字符", max = 32)
	@ApiModelProperty(value = "账号")
    private String account;
	
	@NotBlank(message="用户名必填")
	@Size(message="用户名最大20字符", max = 20)
	@ApiModelProperty(value = "用户名")
	private String name;
	
	@NotBlank(message="邮件必填")
	@Email(message = "邮件格式不正确")
	@ApiModelProperty(value = "邮箱")
	private String email;
	
	@NotBlank(message="公司名称必填")
	@Size(message="公司名称最大32字符", max = 32)
	@ApiModelProperty(value = "公司名称")
	private String fullname;
	
	@ApiModelProperty(value = "公司类型字典表ID")
	private String type;

	@ApiModelProperty(value = "区域字典ID")
	private String region;
}
